<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title><?php echo $title;?></title>
<link href="<?php echo base_url(); ?>assets/public/css/reset.css" media="screen" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url(); ?>assets/public/css/style.css" media="screen" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link href="css/ie.css" media="screen" rel="stylesheet" type="text/css">
<![endif]-->
<?php 
foreach($css_files as $file): ?>
	<link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
<?php endforeach; ?>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/public/js/jquery-1.4.4.min.js"></script>
<?php foreach($js_files as $file): ?>
<script type="text/javascript" src="<?php echo $file; ?>"></script>
<?php endforeach; ?>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/public/js/jquery-tipsy.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/public/js/jquery-custom.js"></script>
<script type="text/javascript">
 $(document).ready(function(){
    $('#pe_search').hide();
    $('.btn_search').click(function(){
        $("#pe_search").slideToggle();
    });
 });
</script>
</head>
<body>
<div class="shadow"></div>
<!-- .shadow -->
<?php $this->load->view("common/header_view"); ?>
 <?php $this->load->view("common/sidebar_view",$sb);?>
<!-- BEGIN CONTENT -->
<div id="content">
    <div class="box-out">
    	<div class="box-in">
    		<div class="box-head"><h1><?php echo $content_title;?></h1></div>
                <div class="box-content" id="personnel_content">
                    <!--*********************Layout content********************************-->
                     <div class="table">
                         <a href="#" class="btn_add" style="display: inline-block;margin: -5px 0px 5px 0px;">Thêm nhân sự</a>
    				
    					<table>
    						<thead>
    							<tr>
    								<td><div>Họ tên</div></td>
    								<td><div>Ngày sinh</div></td>
    								<td><div>Địa chỉ</div></td>
                                                                <td><div>Lương cơ bản</div></td>
                                                                <td><div>Lương ngoài giờ</div></td>
    								<td><div>Thao tác</div></td>
                                                                
    							</tr>
    						</thead>
    						<tbody>
                                                      <?php for($i=0;$i<count($info);$i++){
                                                          if($i%2==0) {
                                                       ?>
    							<tr>
    								
    								<td><div class="even"><?php echo $info[$i]['name'];?></div></td>
    								<td><div class="even"><?php echo $info[$i]['birthday'];?></div></td>
    								<td><div class="even"><?php echo $info[$i]['address'];?></div></td><td><div class="even"><?php echo $info[$i]['salary'];?></div></td><td><div class="even"><?php echo $info[$i]['otsalary'];?></div></td>
    								<td class="action"><div class="even"><a title="edit this item" href="<?php echo base_url();?>personnels/edit/<?php echo $info[$i]['id'];?>" class="tooltip">Edit</a> - <a title="delete this item" href="<?php echo base_url();?>personnels/delete/<?php echo $info[$i]['id'];?>" class="tooltip">Delete</a></div></td>
    							</tr>
                                                         <?php }else { ?>
    							<tr>
    								
    								<td><div class="odd"><?php echo $info[$i]['name'];?></div></td>
    								<td><div class="odd"><?php echo $info[$i]['birthday'];?></div></td>
    								<td><div class="odd"><?php echo $info[$i]['address'];?></div></td><td><div class="odd"><?php echo $info[$i]['salary'];?></div></td><td><div class="odd"><?php echo $info[$i]['otsalary'];?></div></td>
    								<td class="action"><div class="odd"><a title="edit this item" href="<?php echo base_url();?>personnels/edit/<?php echo $info[$i]['id'];?>" class="tooltip">Edit</a> - <a title="delete this item" href="<?php echo base_url();?>personnels/delete/<?php echo $info[$i]['id'];?>" class="tooltip">Delete</a></div></td>
    							</tr>
                                                        <?php }}?>
    						</tbody>
    					</table>
    					
    	             </div>
                    <!--*********************End layout content****************************-->
                </div>
        </div>
    </div>
</div>
<!--- END CONTENT --->

</body>
</html>
